package com.itbaizhan.service;

import com.itbaizhan.Container;
import com.itbaizhan.dao.StudentDao;
import com.itbaizhan.dao.impl.StudentDaoImpl;
import com.itbaizhan.domain.Student;

public class StudentService {
    public Student findById(int id){
        StudentDao studentDao = (StudentDao) Container.getBean("studentDao");
        System.out.println(studentDao.hashCode());
        Student s = studentDao.findById(1);
        return s;
    }
}
